package two.chapter_1.c1_3;

import java.util.Iterator;

public abstract class Stack<Item> implements Collection<Item> {


    protected int size;
    public Stack(){

    }

    public abstract void push(Item item);



    public abstract Item pop();

    public abstract Item peek();




    @Override
    public boolean isEmpty() {
        return size()==0;
    }

    @Override
    public int size() {
        return size;
    }


}
